# -*- coding: utf-8 -*-
"""
Created on Tue Oct 24 19:46:06 2023

@author: 楠川之木
"""

import re

def check_alphanumeric(string):
    pattern = r'^[a-zA-Z0-9]+$'
    result = re.match(pattern, string)
    return result is not None

# 测试代码
string1 = "Hello88python"
string2 = "Hello python!"
print(check_alphanumeric(string1))  # True
print(check_alphanumeric(string2))  # False